# -*- coding=utf-8 -*-
"""
Created on Mon Nov 10 15:56:41 2014

@author: motsqueen
"""
from matplotlib import font_manager
import matplotlib.pyplot as plt 

#conf
# zh_font = font_manager.FontProperties(fname='c:/windows/fonts/simsun.ttc', size=14)
zh_font = font_manager.FontProperties(fname='C:/Windows/Fonts/simhei.ttf', size=14)


plt.title("性别比例分析", fontproperties=zh_font)

plt.xlabel('性别', fontproperties=zh_font)
plt.ylabel('人数', fontproperties=zh_font)

plt.xticks((0,1),('男','女'), fontproperties=zh_font)

plt.bar(left = (0,1),height = (1,0.5),width = 0.35)

plt.show()
